Fixed call to setArticleBodyOnly() on wrong object type.
authorAaron <aschulz@wikimedia.org>
Wed, 16 May 2012 18:15:00 +0000 (11:15 -0700)
committerAaron <aschulz@wikimedia.org>
Wed, 16 May 2012 18:15:00 +0000 (11:15 -0700)
Change-Id: I492bbdb41aa849a86b162c7cc659dde391874454

includes/ImagePage.php

index fc3bdff..3fbbcba 100644 (file)
@@ -96,7 +96,7 @@ class ImagePage extends Article {
         * Include body text only; none of the image extras
         */
        public function render() {
-               $this->getContext()->setArticleBodyOnly( true );
+               $this->getContext()->getOutput()->setArticleBodyOnly( true );
                parent::view();
        }